# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class WAFRule(object):

    def __init__(self, id=None, description=None, priority=None, group=None, package_id=None, allowed_modes=None, default_mode=None, mode=None):
        """
        :param id: (Optional) WAF规则标识符标签
        :param description: (Optional) 规则的公开说明
        :param priority: (Optional) 在相关组中执行单个规则的顺序
        :param group: (Optional) 
        :param package_id: (Optional) WAF包标识符标签
        :param allowed_modes: (Optional) 定义触发规则时规则交互方式的可用模式。
        :param default_mode: (Optional) 规则的默认模式。
        :param mode: (Optional) 评估请求时是否使用基于异常的规则。
        """

        self.id = id
        self.description = description
        self.priority = priority
        self.group = group
        self.package_id = package_id
        self.allowed_modes = allowed_modes
        self.default_mode = default_mode
        self.mode = mode
